<script setup lang='ts'>
import { onMounted, ref } from 'vue';
import MyTag from './components/MyTag.vue';

const myTagRef = ref(null)

onMounted(() => {
  console.log(myTagRef.value.msg);
  myTagRef.value.showAlert()
})

</script>

<template>
  <MyTag ref="myTagRef"></MyTag>
</template>

<style scoped></style>